<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFile extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('files', function (Blueprint $table) {
            $table->increments('id');
            $table->string("name",255)->nullable()->comment("文件名称");
            $table->integer("type")->nullable()->comment("1[图片] 2[文件] 3[视频] 4[语音]");
            $table->string("uri",255)->nullable()->comment("图片地址");
            $table->string("mime",255)->nullable()->comment("文件类型");
            $table->string("size",255)->nullable()->comment("大小");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
